/*

Displays a simple light effect used on water.

Usage (Level NPC):

function onCreated() {
  this.join("object_waterlight");
}

*/

//#CLIENTSIDE

function onCreated() {
  // Check if Light Effects Enabled
  if (lighteffectsenabled) {
    // Show Light
    with (findimg(200)) {
      // Re-position
      x = thiso.x - 2;
      y = thiso.y - 2;
      // Light Image
      image = "light2.png";
      // Zoom Effect
      zoom  = random(1, 1.5);
      // Color
      red   = 0;
      green = random(0, 0.3);
      blue  = 1;
      // Transparency
      alpha = 0.99;
    }
  }
}
